<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
	<!-- 经理人审核页面 -->
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-hatchetMerchant-edit" th:object="${hatchetMerchant}">
            <input id="iD" name="iD" th:field="*{iD}"  type="hidden">
			
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户名称：</label>
				<div class="form-control-static" th:text="*{merchantCnName}"></div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户编号：</label>
				<div class="form-control-static" th:text="*{merchantNo}"></div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户手机号：</label>
				<div class="form-control-static" th:text="*{pHONE}"></div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">上级代理名称：</label>
				<div class="form-control-static" th:text="*{agentName}"></div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">上级代理编号：</label>
				<div id="agentNoDiv" class="form-control-static" th:text="*{agentNo}"></div>
			</div>
			<div  class="form-group">	
				<label class="col-sm-3 control-label">升级经纪人时间：</label>
				<div id="submitReexamineTime" class="form-control-static" th:text="${#dates.format(hatchetMerchant.submitReexamineTime, 'yyyy-MM-dd HH:mm:ss')}"></div>
			</div>
			<div  class="form-group">	
				<label class="col-sm-3 control-label">总业绩：</label>
				<div id="sumMoney" class="form-control-static" th:text="*{sumMoney}"></div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否通过成为经理人：</label>
				<div class="col-sm-8">
						<select id="isValid" name="isValid"  class="form-control m-b">
						<option value="10B">是</option>
						<option value="10C">否</option>
					</select>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/hatchetMerchant";
		$("#form-hatchetMerchant-edit").validate({
			rules:{
				lEVEL:{
					required:true,
				},
			}
		});
		//自动填入上级代理商编号
		 $(function() {
			 $("#agentNo").val($("#agentNoDiv").text());
			 
		 })
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-hatchetMerchant-edit').serialize());
	        }
	    }
		
	</script>
</body>
</html>
